package com.thiswhyme.gateway.sentinel.service.biz;

import com.alibaba.csp.sentinel.slots.block.degrade.DegradeRule;

import java.io.Serializable;

/**
 * @description: 降级规则扩展
 * @author: thiswhyme
 * @date: 2021/4/25
 */
public class IpDegradeRule extends DegradeRule implements Serializable {

    private static final long serialVersionUID = -7739113445983960499L;

    /**
     * 资源是ip:port时，使用，记录该ip:port归属的service唯一标识
     */
    private String ipFrom;

    public String getIpFrom() {
        return ipFrom;
    }

    public void setIpFrom(String ipFrom) {
        this.ipFrom = ipFrom;
    }
}
